package com.cropdoctor.model.doc;

import com.cropdoctor.model.po.PublishCoursePo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@Data
@NoArgsConstructor
public class PublishCourseDoc {
    private String title;

    private String url;

    private String status;
    private long id;
    private String mt;

    private String st;
    private String createDate;


    public PublishCourseDoc(PublishCoursePo publishCoursePo) {
        BeanUtils.copyProperties(publishCoursePo,this);
        this.createDate = publishCoursePo.getCreateDate().toString();
    }
}
